package com.shop.loan.controller;

import com.shop.loan.model.common.ResResult;
import com.shop.loan.model.vo.OrderVo;
import com.shop.loan.service.LogisticsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.erupt.core.annotation.EruptRouter;
import xyz.erupt.core.constant.EruptRestPath;

import javax.annotation.Resource;

@RestController
@RequestMapping(EruptRestPath.ERUPT_API + "/logistics")
public class LogisticsController {

    @Resource
    LogisticsService logisticsService;

    @EruptRouter(
            verifyType = EruptRouter.VerifyType.LOGIN
    )
    @PostMapping("/get")
    public ResResult get(OrderVo orderVo) {
        return logisticsService.get(orderVo);
    }

}
